// ************************************************************************ //
// The types declared in this file were generated from data read from the
// WSDL File described below:
// WSDL     : C:\Documents and Settings\coskunk\Local Settings\Temp\Code_Area\Code_Area\Casper\CasperPrg\service.wsdl
// Encoding : utf-8
// Version  : 1.0
// (24.08.2011 11:54:41 - 1.33.2.5)
// ************************************************************************ //

unit service;

interface

uses InvokeRegistry, SOAPHTTPClient, Types, XSBuiltIns;

type

  // ************************************************************************ //
  // The following types, referred to in the WSDL document are not being represented
  // in this file. They are either aliases[@] of other types represented or were referred
  // to but never[!] declared in the document. The types from the latter category
  // typically map to predefined/known XML or Borland types; however, they could also 
  // indicate incorrect WSDL documents that failed to declare or import a schema type.
  // ************************************************************************ //
  // !:string          - "http://www.w3.org/2001/XMLSchema"
  // !:int             - "http://www.w3.org/2001/XMLSchema"
  // !:dateTime        - "http://www.w3.org/2001/XMLSchema"

  IrsaliyeBilResult    = class;                 { "http://tempuri.org/" }
  IrsaliyeAtfNoResult  = class;                 { "http://tempuri.org/" }
  BarcodeIrsaliyeBilResult = class;             { "http://tempuri.org/" }
  TeslimatAtfSorguResult = class;               { "http://tempuri.org/" }
  OrtakSubeKasaYapResult = class;               { "http://tempuri.org/" }
  teslimat             = class;                 { "http://tempuri.org/" }
  IrsaliyeHareketResult = class;                { "http://tempuri.org/" }
  MatbuAtfHareketResult = class;                { "http://tempuri.org/" }
  AtfDetayBilgiResult  = class;                 { "http://tempuri.org/" }
  KargomNeredeResult   = class;                 { "http://tempuri.org/" }
  IntarlandDataResult  = class;                 { "http://tempuri.org/" }
  SubeDataResult       = class;                 { "http://tempuri.org/" }
  SubeBilgileriDataResult = class;              { "http://tempuri.org/" }
  IlceDataResult       = class;                 { "http://tempuri.org/" }



  // ************************************************************************ //
  // Namespace : http://tempuri.org/
  // ************************************************************************ //
  IrsaliyeBilResult = class(TRemotable)
  private
    Fschema: WideString;
  published
    property schema: WideString read Fschema write Fschema;
  end;



  // ************************************************************************ //
  // Namespace : http://tempuri.org/
  // ************************************************************************ //
  IrsaliyeAtfNoResult = class(TRemotable)
  private
    Fschema: WideString;
  published
    property schema: WideString read Fschema write Fschema;
  end;



  // ************************************************************************ //
  // Namespace : http://tempuri.org/
  // ************************************************************************ //
  BarcodeIrsaliyeBilResult = class(TRemotable)
  private
    Fschema: WideString;
  published
    property schema: WideString read Fschema write Fschema;
  end;



  // ************************************************************************ //
  // Namespace : http://tempuri.org/
  // ************************************************************************ //
  TeslimatAtfSorguResult = class(TRemotable)
  private
    Fschema: WideString;
  published
    property schema: WideString read Fschema write Fschema;
  end;



  // ************************************************************************ //
  // Namespace : http://tempuri.org/
  // ************************************************************************ //
  OrtakSubeKasaYapResult = class(TRemotable)
  private
    Fschema: WideString;
  published
    property schema: WideString read Fschema write Fschema;
  end;



  // ************************************************************************ //
  // Namespace : http://tempuri.org/
  // ************************************************************************ //
  teslimat = class(TRemotable)
  private
  published
  end;



  // ************************************************************************ //
  // Namespace : http://tempuri.org/
  // ************************************************************************ //
  IrsaliyeHareketResult = class(TRemotable)
  private
    Fschema: WideString;
  published
    property schema: WideString read Fschema write Fschema;
  end;



  // ************************************************************************ //
  // Namespace : http://tempuri.org/
  // ************************************************************************ //
  MatbuAtfHareketResult = class(TRemotable)
  private
    Fschema: WideString;
  published
    property schema: WideString read Fschema write Fschema;
  end;



  // ************************************************************************ //
  // Namespace : http://tempuri.org/
  // ************************************************************************ //
  AtfDetayBilgiResult = class(TRemotable)
  private
    Fschema: WideString;
  published
    property schema: WideString read Fschema write Fschema;
  end;



  // ************************************************************************ //
  // Namespace : http://tempuri.org/
  // ************************************************************************ //
  KargomNeredeResult = class(TRemotable)
  private
    Fschema: WideString;
  published
    property schema: WideString read Fschema write Fschema;
  end;



  // ************************************************************************ //
  // Namespace : http://tempuri.org/
  // ************************************************************************ //
  IntarlandDataResult = class(TRemotable)
  private
    Fschema: WideString;
  published
    property schema: WideString read Fschema write Fschema;
  end;



  // ************************************************************************ //
  // Namespace : http://tempuri.org/
  // ************************************************************************ //
  SubeDataResult = class(TRemotable)
  private
    Fschema: WideString;
  published
    property schema: WideString read Fschema write Fschema;
  end;



  // ************************************************************************ //
  // Namespace : http://tempuri.org/
  // ************************************************************************ //
  SubeBilgileriDataResult = class(TRemotable)
  private
    Fschema: WideString;
  published
    property schema: WideString read Fschema write Fschema;
  end;



  // ************************************************************************ //
  // Namespace : http://tempuri.org/
  // ************************************************************************ //
  IlceDataResult = class(TRemotable)
  private
    Fschema: WideString;
  published
    property schema: WideString read Fschema write Fschema;
  end;


  // ************************************************************************ //
  // Namespace : http://tempuri.org/
  // soapAction: http://tempuri.org/%operationName%
  // transport : http://schemas.xmlsoap.org/soap/http
  // binding   : ServiceSoap
  // service   : Service
  // port      : ServiceSoap
  // URL       : http://service.fillo.com.tr/musteriirsaliye3/service.asmx
  // ************************************************************************ //
  ServiceSoap = interface(IInvokable)
  ['{77573149-9C57-FA51-F11F-EFD527C91BD9}']
    function  IrsaliyeBil(const IrsaliyeNo: WideString; const FirmaKodu: WideString): IrsaliyeBilResult; stdcall;
    function  IrsaliyeAtfNo(const AtfNo: WideString; const FirmaKodu: WideString): IrsaliyeAtfNoResult; stdcall;
    function  BarcodeIrsaliyeBil(const AtfNo: WideString; const Deger: Integer): BarcodeIrsaliyeBilResult; stdcall;
    function  TeslimatAtfSorgu(const AtfNo: WideString): TeslimatAtfSorguResult; stdcall;
    function  OrtakSubeKasaYap(const OrtakSubeKodu: WideString; const TahsilatTarihi: WideString; const Kontrol: Integer): OrtakSubeKasaYapResult; stdcall;
    function  TeslimatAtflerUpdate(const AtfNo: WideString; const Teslimtarihi: TXSDateTime; const Teslimalanad: WideString; const Teslimalansoyad: WideString; const Teslimalankimlikturu: WideString; const TeslimatBirimi: Integer; const Teslimalankimlikno: WideString; const Teslimaciklama: WideString; const TeslimEden: WideString): WideString; stdcall;
    function  TeslimatAtflerUpdateV1(const teslimat: teslimat): WideString; stdcall;
    function  IrsaliyeHareket(const IrsaliyeNo: WideString; const FirmaKodu: WideString): IrsaliyeHareketResult; stdcall;
    function  MatbuAtfHareket(const AtfNo: WideString; const FirmaKodu: WideString): MatbuAtfHareketResult; stdcall;
    function  AtfDetayBilgi(const IrsaliyeNo: WideString; const FirmaKodu: WideString): AtfDetayBilgiResult; stdcall;
    function  KargomNerede(const AtfNo: WideString; const IptalFlg: Integer; const TarihKontrol: Integer): KargomNeredeResult; stdcall;
    function  IntarlandData: IntarlandDataResult; stdcall;
    function  SubeData: SubeDataResult; stdcall;
    function  SubeBilgileriData: SubeBilgileriDataResult; stdcall;
    function  IlceData: IlceDataResult; stdcall;
  end;

function GetServiceSoap(UseWSDL: Boolean=System.False; Addr: string=''; HTTPRIO: THTTPRIO = nil): ServiceSoap;


implementation

function GetServiceSoap(UseWSDL: Boolean; Addr: string; HTTPRIO: THTTPRIO): ServiceSoap;
const
  defWSDL = 'C:\Documents and Settings\coskunk\Local Settings\Temp\Code_Area\Code_Area\Casper\CasperPrg\service.wsdl';
  defURL  = 'http://service.fillo.com.tr/musteriirsaliye3/service.asmx';
  defSvc  = 'Service';
  defPrt  = 'ServiceSoap';
var
  RIO: THTTPRIO;
begin
  Result := nil;
  if (Addr = '') then
  begin
    if UseWSDL then
      Addr := defWSDL
    else
      Addr := defURL;
  end;
  if HTTPRIO = nil then
    RIO := THTTPRIO.Create(nil)
  else
    RIO := HTTPRIO;
  try
    Result := (RIO as ServiceSoap);
    if UseWSDL then
    begin
      RIO.WSDLLocation := Addr;
      RIO.Service := defSvc;
      RIO.Port := defPrt;
    end else
      RIO.URL := Addr;
  finally
    if (Result = nil) and (HTTPRIO = nil) then
      RIO.Free;
  end;
end;


initialization
  InvRegistry.RegisterInterface(TypeInfo(ServiceSoap), 'http://tempuri.org/', 'utf-8');
  InvRegistry.RegisterDefaultSOAPAction(TypeInfo(ServiceSoap), 'http://tempuri.org/%operationName%');
  RemClassRegistry.RegisterXSClass(IrsaliyeBilResult, 'http://tempuri.org/', 'IrsaliyeBilResult');
  RemClassRegistry.RegisterXSClass(IrsaliyeAtfNoResult, 'http://tempuri.org/', 'IrsaliyeAtfNoResult');
  RemClassRegistry.RegisterXSClass(BarcodeIrsaliyeBilResult, 'http://tempuri.org/', 'BarcodeIrsaliyeBilResult');
  RemClassRegistry.RegisterXSClass(TeslimatAtfSorguResult, 'http://tempuri.org/', 'TeslimatAtfSorguResult');
  RemClassRegistry.RegisterXSClass(OrtakSubeKasaYapResult, 'http://tempuri.org/', 'OrtakSubeKasaYapResult');
  RemClassRegistry.RegisterXSClass(teslimat, 'http://tempuri.org/', 'teslimat');
  RemClassRegistry.RegisterXSClass(IrsaliyeHareketResult, 'http://tempuri.org/', 'IrsaliyeHareketResult');
  RemClassRegistry.RegisterXSClass(MatbuAtfHareketResult, 'http://tempuri.org/', 'MatbuAtfHareketResult');
  RemClassRegistry.RegisterXSClass(AtfDetayBilgiResult, 'http://tempuri.org/', 'AtfDetayBilgiResult');
  RemClassRegistry.RegisterXSClass(KargomNeredeResult, 'http://tempuri.org/', 'KargomNeredeResult');
  RemClassRegistry.RegisterXSClass(IntarlandDataResult, 'http://tempuri.org/', 'IntarlandDataResult');
  RemClassRegistry.RegisterXSClass(SubeDataResult, 'http://tempuri.org/', 'SubeDataResult');
  RemClassRegistry.RegisterXSClass(SubeBilgileriDataResult, 'http://tempuri.org/', 'SubeBilgileriDataResult');
  RemClassRegistry.RegisterXSClass(IlceDataResult, 'http://tempuri.org/', 'IlceDataResult');

end. 